#include "Rational.cpp"
int main()
{
    Rational a=Rational(4,6);
    Rational b=Rational(2,4);
    Rational s;
    a.simplificare();
    cout<<a<<endl<<b<<endl<<"Suma:"<<a+b<<endl<<"Diferenta:"<<a-b<<endl<<"Produsul:"<<a*b<<endl<<"Impartirea:"<<a/b<<endl;
    if (a==b) cout<<"fractii egale";
    else cout<<"fractii diferite";
    return 0;
}
